home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 January / PC Answers Issue 3 January 1995.iso / install.bat < prev    next >
DOS Batch File  |  1994-05-02  |  18KB  |  508 lines

  1. @echo off
  2. ansi > nul
  3.  
  4. echo   H
  5. echo            ╔═════════════════════════════════════════════════════════╗
  6. echo            ║                                                         ║
  7. echo            ║   We are fast approaching the Eleventh Hour! This       
  8. echo            ║   batch program will install the files for the demo     
  9. echo            ║   of The Eleventh Hour. It will run best on a           
  10. echo            ║   300 K/sec. or faster CD-ROM drive. It has not yet     
  11. echo            ║   been tuned for the slower (150 K/sec.) CD-ROM drives. 
  12. echo            ║   The final product WILL support the slower CD-ROMs.    
  13. echo            ║        Additionally, this interim batch install         
  14. echo            ║   program uses slightly less than 100 bytes of          
  15. echo            ║   environment variables while performing the            
  16. echo            ║   installation. If the installation has any problems,   
  17. echo            ║   you may need to temporarily increase the size of      
  18. echo            ║   your enviornment.                                     
  19. echo            ║                                                         
  20. echo            ║        And now, on to   The Eleventh Hour!              
  21. echo            ║                                                         ║
  22. echo            ╚═════════════════════════════════════════════════════════╝
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. what C "14HDo you want to copy the files at this time? Y/N -->  "YN
  34.  
  35. if %WHAT%==N echo o
  36. if %WHAT%==N goto END
  37. echo es
  38. rem This is the begining of the file copy section
  39.  
  40. WHAT C "14HEnter the drive letter for your CD-ROM --> 58H"ABCDEFGHIJKLMNOPQRSTUVWXYZ
  41. echo :
  42. SET T11C=%WHAT%
  43.  
  44. ECHO  14HEnter the letter of the HARD DRIVE that The Eleventh Hour
  45. WHAT C "14Hwill run from  --> "CDEFGHIJKLMNOPQRSTUVWXYZ
  46. ECHO :
  47. SET T11H=%WHAT%
  48.  
  49. echo   H
  50. echo            ╔═════════════════════════════════════════════════════╗
  51. echo                ║                                                     ║
  52. echo            ║   Files will now be copied from your %T11C%: drive       
  53. echo            ║   (CD-ROM) to your %T11H%: drive (Hard drive.) They      
  54. echo            ║   Will be put in the \ID\11HDEMO directory (which   
  55. echo            ║   will be created if it does not already exist.)    
  56. echo                ║                                                     
  57. echo                ╚═════════════════════════════════════════════════════╝
  58.  
  59. what C "20HDo you wish to proceed? Y/N -->  "YN
  60. if %WHAT%==N echo o
  61. if %WHAT%==N goto end
  62. echo es
  63.  
  64. echo   H
  65. echo            ╔═════════════════════════════════════════════╗
  66. echo            ║                                             ║
  67. echo            ║               Copying Files                 
  68. echo            ║                                             
  69. echo            ║        (This may take a minute or so.)      
  70. echo                ║                                             ║
  71. echo                ╚═════════════════════════════════════════════╝
  72.  
  73.  
  74. %T11H%:
  75. verify on
  76. cd \
  77. md id >nul
  78. cd \id
  79. md 11hdemo >nul
  80. cd 11hdemo
  81. copy %T11C%:\11H\INSTALL\*.*
  82. echo @echo off > install.bat
  83. echo set T11C=%T11C%>>install.bat
  84. echo set T11H=%T11H%>>install.bat
  85. copy install.bat+inst.txt 
  86. cls
  87. rem play background screen
  88.  
  89. echo   
  90.  
  91.  
  92. echo ;>temp.ini
  93. echo ;.INI file for The Eleventh Hour>>temp.ini
  94. echo ;>>temp.ini
  95. echo ;(C) Copyright 1993,1994 Trilobyte, Inc.>>temp.ini
  96. echo ;>>temp.ini
  97. echo [main]>>temp.ini
  98. echo DMABufferSize=16384>>temp.ini
  99. echo TicksPerSecond=300>>temp.ini
  100. echo VideoCard=VESA compatible video card>>temp.ini
  101. echo svga=on>>temp.ini
  102. echo ProgDir=%T11H%:\ID\11HDEMO\>>temp.ini
  103. echo DataDir=%T11C%:\11H\>>temp.ini
  104. type sound.scr
  105. what c "Enter the letter for your sound card -->"ABCDEFGHIJX
  106. echo .
  107. SET T11P=%WHAT%
  108. if %T11P%==X set T11PP=A
  109. if %T11P%==X set T11PI=A
  110. if %T11P%==X set T11PD=A
  111. if %T11P%==X GOTO GETMIDI
  112. echo  
  113.  
  114.  
  115. type port.scr
  116. what C "Enter the letter of your choice -->"ABCDEFGHIJKLMN
  117. echo .
  118. set T11PP=%WHAT%
  119. echo  
  120.  
  121. type irq.scr
  122. what C "Enter the letter of your choice -->"ABCDEFGHIJK
  123. echo .
  124. set T11PI=%WHAT%
  125. echo   
  126.  
  127. type dma.scr
  128. what C "Enter the letter of your choice -->"ABCDEF
  129. echo .
  130.  
  131. set T11PD=%WHAT%
  132.  
  133.  
  134. :GETMIDI
  135. echo   
  136.  
  137. type music.scr
  138. what c "Enter the letter for your sound card -->"ABCDEFGHIJKLMX
  139. echo .
  140. SET T11M=%WHAT%
  141.  
  142.  
  143. if %T11M%==A echo midi=SoundBlaster>>temp.ini
  144. if %T11M%==B echo midi=SoundBlasterASP16>>temp.ini
  145. if %T11M%==C echo midi=SoundBlasterPro1>>temp.ini
  146. if %T11M%==D echo midi=SoundBlasterPro2>>temp.ini
  147. if %T11M%==E echo midi=ProAudioSpectrum>>temp.ini
  148. if %T11M%==F echo midi=ProAudioSpectrum>>temp.ini
  149. if %T11M%==G echo midi=ProAudioSpectrum>>temp.ini
  150. if %T11M%==H echo midi=Sensation>>temp.ini
  151. if %T11M%==I echo midi=Aria>>temp.ini
  152. if %T11M%==J echo midi=AdlibGold>>temp.ini
  153. if %T11M%==K echo midi=Adlib>>temp.ini
  154. if %T11M%==L echo midi=GeneralMidi>>temp.ini
  155. if %T11M%==M echo midi=MT32>>temp.ini
  156. if %T11M%==X echo midi=None>>temp.ini
  157. if %T11P%==A echo pcm=SoundBlaster>>temp.ini
  158. if %T11P%==B echo pcm=SoundBlasterASP16>>temp.ini
  159. if %T11P%==C echo pcm=SoundBlasterPro1>>temp.ini
  160. if %T11P%==D echo pcm=SoundBlasterPro2>>temp.ini
  161. if %T11P%==E echo pcm=ProAudioSpectrum>>temp.ini
  162. if %T11P%==F echo pcm=ProAudioSpectrum>>temp.ini
  163. if %T11P%==G echo pcm=ProAudioSpectrum>>temp.ini
  164. if %T11P%==H echo pcm=Sensation>>temp.ini
  165. if %T11P%==I echo pcm=Aria>>temp.ini
  166. if %T11P%==J echo pcm=AdlibGold>>temp.ini
  167. if %T11P%==X echo pcm=None>>temp.ini
  168.  
  169. if %T11M%==X set T11MP=A
  170. if %T11M%==X set T11MI=A
  171. if %T11M%==X set T11MD=A
  172. if %T11M%==X GOTO AFTERMIDI
  173.  
  174. IF %T11M%==%T11P% GOTO AFTERMIDI
  175. echo  
  176.  
  177.  
  178. type port.scr
  179. what C "Enter the letter of your choice -->"ABCDEFGHIJKLMN
  180. set T11MP=%WHAT%
  181. echo   
  182.  
  183. type irq.scr
  184. what C "Enter the letter of your choice -->"ABCDEFGHIJK
  185. set T11MI=%WHAT%
  186.  
  187. echo   
  188.  
  189. type dma.scr
  190. what C "Enter the letter of your choice -->"ABCDEF
  191. set T11MD=%WHAT%
  192.  
  193.             
  194. :AFTERMIDI
  195. copy temp.ini+cr.txt >nul
  196.  
  197. if %T11P%==A echo [SoundBlaster]>>temp.ini
  198. if %T11P%==B echo [SoundBlasterASP16]>>temp.ini
  199. if %T11P%==C echo [SoundBlasterPro1]>>temp.ini
  200. if %T11P%==D echo [SoundBlasterPro2]>>temp.ini
  201. if %T11P%==E echo [ProAudioSpectrum]>>temp.ini
  202. if %T11P%==F echo [ProAudioSpectrum]>>temp.ini
  203. if %T11P%==G echo [ProAudioSpectrum]>>temp.ini
  204. if %T11P%==H echo [Sensation]>>temp.ini
  205. if %T11P%==I echo [Aria]>>temp.ini
  206. if %T11P%==J echo [AdlibGold]>>temp.ini
  207. if %T11P%==X echo [None]>>temp.ini
  208.  
  209.  
  210. if %T11PP%==A echo port=210>>temp.ini
  211. if %T11PP%==B echo port=220>>temp.ini
  212. if %T11PP%==C echo port=230>>temp.ini
  213. if %T11PP%==D echo port=240>>temp.ini
  214. if %T11PP%==E echo port=250>>temp.ini
  215. if %T11PP%==F echo port=260>>temp.ini
  216. if %T11PP%==G echo port=280>>temp.ini
  217. if %T11PP%==H echo port=290>>temp.ini
  218. if %T11PP%==I echo port=300>>temp.ini
  219. if %T11PP%==J echo port=320>>temp.ini
  220. if %T11PP%==K echo port=330>>temp.ini
  221. if %T11PP%==L echo port=332>>temp.ini
  222. if %T11PP%==M echo port=334>>temp.ini
  223. if %T11PP%==N echo port=336>>temp.ini
  224.  
  225. if %T11PI%==A echo irq=2>>temp.ini
  226. if %T11PI%==B echo irq=3>>temp.ini
  227. if %T11PI%==C echo irq=4>>temp.ini
  228. if %T11PI%==D echo irq=5>>temp.ini
  229. if %T11PI%==E echo irq=6>>temp.ini
  230. if %T11PI%==F echo irq=7>>temp.ini
  231. if %T11PI%==G echo irq=9>>temp.ini
  232. if %T11PI%==H echo irq=10>>temp.ini
  233. if %T11PI%==I echo irq=11>>temp.ini
  234. if %T11PI%==J echo irq=12>>temp.ini
  235. if %T11PI%==K echo irq=15>>temp.ini
  236.  
  237.  
  238. if %T11PD%==A echo dma=0>>temp.ini
  239. if %T11PD%==B echo dma=1>>temp.ini
  240. if %T11PD%==C echo dma=3>>temp.ini
  241. if %T11PD%==D echo dma=5>>temp.ini
  242. if %T11PD%==E echo dma=6>>temp.ini
  243. if %T11PD%==F echo dma=7>>temp.ini
  244.  
  245.  
  246. if %T11P%==A echo pcm=sbdig.adv>>temp.ini
  247. if %T11P%==B echo pcm=sbpdig.adv>>temp.ini
  248. if %T11P%==C echo pcm=sbpdig.adv>>temp.ini
  249. if %T11P%==D echo pcm=sbpdig.adv>>temp.ini
  250. if %T11P%==E echo pcm=pasdig.adv>>temp.ini
  251. if %T11P%==F echo pcm=pasdig.adv>>temp.ini
  252. if %T11P%==G echo pcm=pasdig.adv>>temp.ini
  253. if %T11P%==H echo pcm=tandy.drv>>temp.ini
  254. if %T11P%==I echo pcm=ariadig.adv>>temp.ini
  255. if %T11P%==J echo pcm=algdig.adv>>temp.ini
  256.  
  257. if %T11P%==%T11M% GOTO SETXMI
  258. copy temp.ini+cr.txt >nul
  259.  
  260. if %T11M%==A echo [SoundBlaster]>>temp.ini
  261. if %T11M%==B echo [SoundBlasterASP16]>>temp.ini
  262. if %T11M%==C echo [SoundBlasterPro1]>>temp.ini
  263. if %T11M%==D echo [SoundBlasterPro2]>>temp.ini
  264. if %T11M%==E echo [ProAudioSpectrum]>>temp.ini
  265. if %T11M%==F echo [ProAudioSpectrum]>>temp.ini
  266. if %T11M%==G echo [ProAudioSpectrum]>>temp.ini
  267. if %T11M%==H echo [Sensation]>>temp.ini
  268. if %T11M%==M echo [Aria]>>temp.ini
  269. if %T11M%==J echo [AdlibGold]>>temp.ini
  270. if %T11M%==I echo [Adlib]>>temp.ini
  271. if %T11M%==K echo [GeneralMidi]>>temp.ini
  272. if %T11M%==L echo [MT32]>>temp.ini
  273. if %T11M%==X echo [None]>>temp.ini
  274.        
  275.  
  276. if %T11MP%==A echo port=210>>temp.ini
  277. if %T11MP%==B echo port=220>>temp.ini
  278. if %T11MP%==C echo port=230>>temp.ini
  279. if %T11MP%==D echo port=240>>temp.ini
  280. if %T11MP%==E echo port=250>>temp.ini
  281. if %T11MP%==F echo port=260>>temp.ini
  282. if %T11MP%==G echo port=280>>temp.ini
  283. if %T11MP%==H echo port=290>>temp.ini
  284. if %T11MP%==I echo port=300>>temp.ini
  285. if %T11MP%==J echo port=320>>temp.ini
  286. if %T11MP%==K echo port=330>>temp.ini
  287. if %T11MP%==L echo port=332>>temp.ini
  288. if %T11MP%==M echo port=334>>temp.ini
  289. if %T11MP%==N echo port=336>>temp.ini
  290.  
  291. if %T11MI%==A echo irq=2>>temp.ini
  292. if %T11MI%==B echo irq=3>>temp.ini
  293. if %T11MI%==C echo irq=4>>temp.ini
  294. if %T11MI%==D echo irq=5>>temp.ini
  295. if %T11MI%==E echo irq=6>>temp.ini
  296. if %T11MI%==F echo irq=7>>temp.ini
  297. if %T11MI%==G echo irq=9>>temp.ini
  298. if %T11MI%==H echo irq=10>>temp.ini
  299. if %T11MI%==I echo irq=11>>temp.ini
  300. if %T11MI%==J echo irq=12>>temp.ini
  301. if %T11MI%==K echo irq=15>>temp.ini
  302.  
  303. if %T11MD%==A echo dma=0>>temp.ini
  304. if %T11MD%==B echo dma=1>>temp.ini
  305. if %T11MD%==C echo dma=3>>temp.ini
  306. if %T11MD%==D echo dma=5>>temp.ini
  307. if %T11MD%==E echo dma=6>>temp.ini
  308. if %T11MD%==F echo dma=7>>temp.ini
  309.  
  310. :SETXMI
  311.  
  312. if %T11M%==A echo xmi=sbfm.adv>>temp.ini
  313. if %T11M%==B echo xmi=sbp2fm.adv>>temp.ini
  314. if %T11M%==C echo xmi=sbp1fm.adv>>temp.ini
  315. if %T11M%==D echo xmi=sbp2fm.adv>>temp.ini
  316. if %T11M%==E echo xmi=pasopl.adv>>temp.ini
  317. if %T11M%==F echo xmi=pasopl.adv>>temp.ini
  318. if %T11M%==G echo xmi=pasfm.adv>>temp.ini
  319. if %T11M%==H echo xmi=adlib.adv>>temp.ini
  320. if %T11M%==I echo xmi=ariaxmid.adv>>temp.ini
  321. if %T11M%==J echo xmi=adlibg.adv>>temp.ini
  322. if %T11M%==K echo xmi=adlib.adv>>temp.ini
  323. if %T11M%==L echo xmi=mt32mpu.adv>>temp.ini
  324. if %T11M%==M echo xmi=mt32mpu.adv>>temp.ini
  325.  
  326. copy temp.ini+cr.txt >nul
  327.         
  328. echo   H
  329. echo            ╔═════════════════════════════════════════════════════════╗
  330. echo            ║                                                         ║
  331. echo            ║   The following choices have been made and will be      
  332. echo            ║   used to configure The Eleventh Hour:                  
  333. echo            ║                                                         
  334. echo            ║   Sound Card for voices:                                
  335. echo            ║                                                         
  336. echo            ║   I/O Port Address:         IRQ:         DMA:           
  337. echo            ║                                                         
  338. echo            ║                                                         
  339. echo            ║   Sound Card for music:                                 
  340. echo            ║                                                         
  341. echo            ║   I/O Port Address:         IRQ:         DMA:           
  342. echo            ║                                                         
  343. echo            ║                                                         
  344. echo            ║   (If these choices are acceptible, then they will      
  345. echo            ║    be written into the GROOVIE.INI file.)               
  346. echo            ║                                                         ║
  347. echo            ╚═════════════════════════════════════════════════════════╝
  348.  
  349. if %T11P%==A echo 0H Sound Blaster or compatible
  350. if %T11P%==B echo 0H Sound Blaster ASP / 16
  351. if %T11P%==C echo 0H Sound Blaster Pro 1
  352. if %T11P%==D echo 0H Sound Blaster Pro 2
  353. if %T11P%==E echo 0H Pro Audio Studio 16
  354. if %T11P%==F echo 0H Pro Audio Spectrum Plus /16
  355. if %T11P%==G echo 0H Pro Audio Spectrum
  356. if %T11P%==H echo 0H Tandy Sensation
  357. if %T11P%==I echo 0H Aria
  358. if %T11P%==J echo 0H Adlib Gold
  359. if %T11P%==X echo 0H None
  360. if %T11P%==X goto AFTERPCMS
  361.  
  362. if %T11PP%==A echo 3H 210H 
  363. if %T11PP%==B echo 3H 220H 
  364. if %T11PP%==C echo 3H 230H 
  365. if %T11PP%==D echo 3H 240H 
  366. if %T11PP%==E echo 3H 250H 
  367. if %T11PP%==F echo 3H 260H 
  368. if %T11PP%==G echo 3H 280H 
  369. if %T11PP%==H echo 3H 290H 
  370. if %T11PP%==I echo 3H 300H 
  371. if %T11PP%==J echo 3H 320H 
  372. if %T11PP%==K echo 3H 330H 
  373. if %T11PP%==L echo 3H 332H 
  374. if %T11PP%==M echo 3H 334H 
  375. if %T11PP%==N echo 3H 336H 
  376.  
  377. if %T11PI%==A echo 6H 2 
  378. if %T11PI%==B echo 6H 3 
  379. if %T11PI%==C echo 6H 4 
  380. if %T11PI%==D echo 6H 5 
  381. if %T11PI%==E echo 6H 6 
  382. if %T11PI%==F echo 6H 7 
  383. if %T11PI%==G echo 6H 9 
  384. if %T11PI%==H echo 6H 10
  385. if %T11PI%==I echo 6H 11
  386. if %T11PI%==J echo 6H 12
  387. if %T11PI%==K echo 6H 15
  388.  
  389.  
  390. if %T11PD%==A echo 9H 0 
  391. if %T11PD%==B echo 9H 1 
  392. if %T11PD%==C echo 9H 3 
  393. if %T11PD%==D echo 9H 5 
  394. if %T11PD%==E echo 9H 6 
  395. if %T11PD%==F echo 9H 7 
  396.  
  397. :AFTERPCMS
  398.  
  399. if %T11M%==X echo 40H None
  400. if %T11M%==X goto AFTMID
  401.  
  402.  
  403. if %T11M%==%T11P% echo 40H Same as above
  404. if %T11M%==%T11P% goto AFTMID
  405.  
  406. if %T11M%==A echo 40H Sound Blaster or compatible
  407. if %T11M%==B echo 40H Sound Blaster ASP / 16
  408. if %T11M%==C echo 40H Sound Blaster Pro 1
  409. if %T11M%==D echo 40H Sound Blaster Pro 2
  410. if %T11M%==E echo 40H Pro Audio Studio 16
  411. if %T11M%==F echo 40H Pro Audio Spectrum Plus /16
  412. if %T11M%==G echo 40H Pro Audio Spectrum
  413. if %T11M%==H echo 40H Tandy Sensation
  414. if %T11M%==I echo 40H Aria
  415. if %T11M%==J echo 40H Adlib Gold
  416. if %T11M%==K echo 40H Adlib
  417. if %T11M%==L echo 40H General Midi
  418. if %T11M%==M echo 40H Roland MT-32 or LAPC/1
  419.  
  420.  
  421. if %T11MP%==A echo 33H 210H 
  422. if %T11MP%==B echo 33H 220H 
  423. if %T11MP%==C echo 33H 230H 
  424. if %T11MP%==D echo 33H 240H 
  425. if %T11MP%==E echo 33H 250H 
  426. if %T11MP%==F echo 33H 260H 
  427. if %T11MP%==G echo 33H 280H 
  428. if %T11MP%==H echo 33H 290H 
  429. if %T11MP%==I echo 33H 300H 
  430. if %T11MP%==J echo 33H 320H 
  431. if %T11MP%==K echo 33H 330H 
  432. if %T11MP%==L echo 33H 332H 
  433. if %T11MP%==M echo 33H 334H 
  434. if %T11MP%==N echo 33H 336H 
  435.  
  436. if %T11MI%==A echo 46H 2 
  437. if %T11MI%==B echo 46H 3 
  438. if %T11MI%==C echo 46H 4 
  439. if %T11MI%==D echo 46H 5 
  440. if %T11MI%==E echo 46H 6 
  441. if %T11MI%==F echo 46H 7 
  442. if %T11MI%==G echo 46H 9 
  443. if %T11MI%==H echo 46H 10
  444. if %T11MI%==I echo 46H 11
  445. if %T11MI%==J echo 46H 12
  446. if %T11MI%==K echo 46H 15
  447.                      
  448.  
  449. if %T11MD%==A echo 59H 0 
  450. if %T11MD%==B echo 59H 1 
  451. if %T11MD%==C echo 59H 3 
  452. if %T11MD%==D echo 59H 5 
  453. if %T11MD%==E echo 59H 6 
  454. if %T11MD%==F echo 59H 7 
  455.  
  456.  
  457.  
  458.  
  459.  
  460. :AFTMID
  461.  
  462. what C "3HDo you wish to keep the above configuration? Y / N  --> "NY
  463. if %WHAT%==N echo o
  464. if %WHAT%==N GOTO END
  465. echo es
  466.  
  467.  
  468. rem this part of the program saves the last 4 versions of groovie.ini. If a previous copy of groovie.ini is
  469. rem in this directory, it will be renamed GROOVIE.001. If a copy of GROOVIE.001 already existed, 
  470. rem then prior to rennaming the previous version of groovie.ini to groovie.001, groovie.001 will 
  471. rem be renamed to groovie.002. and so on. so that the oldest of the four files will be named groovie.003, and 
  472. rem the newest will be named GROOVIE.INI.
  473. rem if you wish to keep more than 3 of the previous copies of GROOVIE.INI, you can UNREMARK one or 
  474. rem more of the following lines
  475.  
  476. rem if exist groovie.007 copy groovie.007 groovie.008
  477. rem if exist groovie.006 copy groovie.006 groovie.007
  478. rem if exist groovie.005 copy groovie.005 groovie.006
  479. rem if exist groovie.004 copy groovie.004 groovie.005
  480. rem if exist groovie.003 copy groovie.003 groovie.004
  481.  
  482. if exist groovie.002 copy groovie.002 groovie.003
  483. if exist groovie.001 copy groovie.001 groovie.002
  484. if exist groovie.ini copy groovie.ini groovie.001
  485. copy temp.ini groovie.ini
  486.  
  487. Echo The eleventh hour is configured and ready to play.
  488. echo Type DEMO (ENTER) to begin The Eleventh Hour!
  489.  
  490.  
  491. :end
  492.  
  493. REM CLEANUP
  494.  
  495. set T11H=
  496. set T11C=
  497. set T11P=
  498. set T11PP=
  499. set T11PI=
  500. set T11PD=
  501. set T11M=
  502. set T11MP=
  503. set T11MI=
  504. set T11MD=
  505. set WHAT=
  506.  
  507.  
  508.